/*
 *                        _oo0oo_
 *                       o8888888o
 *                       88" . "88
 *                       (| -_- |)
 *                       0\  =  /0
 *                     ___/`---'\___
 *                   .' \\|     |// '.
 *                  / \\|||  :  |||// \
 *                 / _||||| -:- |||||- \
 *                |   | \\\  - /// |   |
 *                | \_|  ''\---/''  |_/ |
 *                \  .-\__  '-'  ___/-. /
 *              ___'. .'  /--.--\  `. .'___
 *           ."" '<  `.___\_<|>_/___.' >' "".
 *          | | :  `- \`.;`\ _ /`;.`/ - ` : | |
 *          \  \ `_.   \_ __\ /__ _/   .-` /  /
 *      =====`-.____`.___ \_____/___.-`___.-'=====
 *                        `=---='
 *
 *
 *      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 *
 *            佛祖保佑       永不宕机     永无BUG
 *
 * @Descripttion:
 * @version:
 * @Date: 2022-04-06 13:58:54
 * @LastEditors: huzhushan@126.com
 * @LastEditTime: 2022-07-24 13:29:34
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */

import request from '@/utils/request'

export function GetList(data) {
  return request({
    url: '/web/media/list',
    method: 'post',
    data,
  })
}

export function DeleteFolder(data) {
  return request({
    url: '/web/media/folder_del',
    method: 'post',
    data,
  })
}

export function FileAdd(data) {
  return request({
    url: '/web/media/file_add',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  })
}

export function DeleteItem(data) {
  return request({
    url: '/web/media/file_del',
    method: 'post',
    data,
  })
}

export function GetFolderList(data) {
  return request({
    url: '/web/media/folder_list',
    method: 'post',
    data,
  })
}

export function FileMove(data) {
  return request({
    url: '/web/media/file_remove',
    method: 'post',
    data,
  })
}

export function FolderAdd(data) {
  return request({
    url: '/web/media/folder_add',
    method: 'post',
    data,
  })
}
export function FolderUpdate(data) {
  return request({
    url: '/web/media/folder_update',
    method: 'post',
    data,
  })
}
